/**
 * @author xinjie.txt
 * @time: 2020年7月8日 下午5:29:36
 */
package com.jiepu.daily.corejava.day0708;

/**
 * @Description:
 * @author xinjie.txt
 */
public class Person {
	private String name;
	private int age;
	private String gender;
	private String IDCard;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}

	/**
	 * @param age
	 *            the age to set
	 */
	public void setAge(int age) {
		this.age = age;
	}

	/**
	 * @return the gender
	 */
	public String getGender() {
		return gender;
	}

	/**
	 * @param gender
	 *            the gender to set
	 */
	public void setGender(String gender) {
		this.gender = gender;
	}

	/**
	 * @return the iDCard
	 */
	public String getIDCard() {
		return IDCard;
	}

	/**
	 * @param iDCard
	 *            the iDCard to set
	 */
	public void setIDCard(String iDCard) {
		IDCard = iDCard;
	}

	/**
	 * 
	 */
	public Person() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param name
	 * @param age
	 * @param gender
	 * @param iDCard
	 */
	public Person(String name, int age, String gender, String iDCard) {
		super();
		this.name = name;
		this.age = age;
		this.gender = gender;
		IDCard = iDCard;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Person [name=" + name + ", age=" + age + ", gender=" + gender + ", IDCard=" + IDCard + "]";
	}

	public void eat() {
		System.out.println("eating");
	}

}
